<?php
namespace Admin\Controller;
use Admin\Controller\ChearkLoginController;
use Think\Controller;
class BiController extends ChearkLoginController {
    public function index(){
        $id = $_REQUEST['id'];
        $wher['inpus'] = $id;
        $ad['ad']="已发货";
        $rs = M('purchase')->where($wher)->save($ad);
        if(!empty($rs)){
            $this->redirect('Bike/index', array('cate_id' => 2), 0);
        } else {
            $this->error('发货失败！','Bike/index',0);
        }
    }
}